//
//  TotalTabBarVC.swift
//  DoctorVisits
//
//  Created by lanou3g on 16/2/27.
//  Copyright © 2016年 SHH. All rights reserved.
//

import UIKit

class TotalTabBarVC: UITabBarController {

    override func viewDidLoad() {
        super.viewDidLoad()
        
        self.navigationItem.title = "搜片神器"
        
        //推荐页面
        let recommendTVC:RecommendVC = RecommendVC()
        recommendTVC.tabBarItem = UITabBarItem(title: "推荐", image: nil, tag: 111)
        
        //频道页面
        let channelTVC:ChannelTVC = ChannelTVC()
        channelTVC.tabBarItem = UITabBarItem(title: "频道", image: nil, tag: 112)
        
        //专题页面
        let subjectTVC:SubjectTVC = SubjectTVC()
        subjectTVC.tabBarItem = UITabBarItem(title: "专题", image: nil, tag: 113)
        
        //排行榜页面
        let rankingListTVC:RankingListTVC = RankingListTVC()
        rankingListTVC.tabBarItem = UITabBarItem(title: "排行榜", image: nil, tag: 114)
        
        //更多页面
        let moreTVC:MoreTVC = MoreTVC()
        moreTVC.tabBarItem = UITabBarItem(title: "更多", image: nil, tag: 115)
        
        self.viewControllers = [recommendTVC,channelTVC,subjectTVC,rankingListTVC,moreTVC]
        
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    

    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
        // Get the new view controller using segue.destinationViewController.
        // Pass the selected object to the new view controller.
    }
    */

}
